<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2022-02-18
  Time: 16:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        li{
            list-style: none;
        }
        a{
            text-decoration: none;
        }
        div#main{
            display: flex;
        }
        div#main #left{
            width: 18%;
        }
    </style>
</head>
<body>
<%
    Object o_=session.getAttribute("USER_LOGIN");
    if(o_==null){
        out.print("<script>alert('您没有登录');window.location='login.jsp';</script>");
        return;
    }
%>
<h2 align="left">学校管理系统,欢迎你,<%=session.getAttribute("USER_LOGIN")%>
 <a href="logout.jsp">退出</a>
</h2>

<div id="main">
    <nav id="left">
        <ul>
            <li>
                <a href="#" target="mainFrame">年级</a>

            </li>
            <li>
                <a href="subjectServlet" target="mainFrame">课程信息</a>

            </li>
            <li>
                <a href="studentServlet" target="mainFrame">学生管理</a>

            </li>
            <li>
                <a href="score.jsp" target="mainFrame">成绩管理</a>
            </li>
        </ul>
    </nav>
    <div id="right" style="width: 80%;">
        <iframe src="welcome.jsp" name="mainFrame" frameborder="1" width="100%" height="700px"></iframe>
    </div>
</div>
</body>
</html>
